﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Mny2017r.aspx.cs" Inherits="Updms.Mny.Mny2017r" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Mny2017r] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Mny2017r" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<Triggers>
				<asp:PostBackTrigger ControlID="ibtn_excel"/>
			</Triggers>
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_excel" Text="엑셀" runat="server" CssClass="ibtn ibtn_excel" OnClick="ibtn_excel_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->			
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="11%"><asp:Literal id="ltr_search_year_month" Text="기준년월" runat="server" /></td>
					<td class="ctl" width="18%">
						<ul class="horizontal">
							<li style="width:60%;"><asp:DropDownList id="ddl_search_base_year" runat="server" CssClass="ddl"></asp:DropDownList></li>
							<li style="width:40%;"><asp:dropdownlist id="ddl_search_base_month" runat="server" CssClass="ddl">
										<asp:ListItem Value="01">01</asp:ListItem>
										<asp:ListItem Value="02">02</asp:ListItem>
										<asp:ListItem Value="03">03</asp:ListItem>
										<asp:ListItem Value="04">04</asp:ListItem>
										<asp:ListItem Value="05">05</asp:ListItem>
										<asp:ListItem Value="06">06</asp:ListItem>
										<asp:ListItem Value="07">07</asp:ListItem>
										<asp:ListItem Value="08">08</asp:ListItem>
										<asp:ListItem Value="09">09</asp:ListItem>
										<asp:ListItem Value="10">10</asp:ListItem>
										<asp:ListItem Value="11">11</asp:ListItem>
										<asp:ListItem Value="12">12</asp:ListItem>
									</asp:dropdownlist></li>
						</ul>
					</td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_search_div" Text="구분" runat="server" /></td>
					<td class="ctl" width="26%">
						<ul class="horizontal">
							<li style="width:40%;"><asp:DropDownList id="ddl_search_class" runat="server" Width="99%" CssClass="ddl" AutoPostBack="True" OnSelectedIndexChanged="ddl_search_class_SelectedIndexChanged"></asp:DropDownList></li>
							<li style="width:60%;"><asp:DropDownList id="ddl_search_account" runat="server" Width="100%" CssClass="ddl"></asp:DropDownList></li>
						</ul>
					</td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_search_contents" Text="내용" runat="server" /></td>
					<td class="ctl" width="22%"><asp:TextBox id="txt_search_contents" runat="server" Width="98%" CssClass="ib_b"></asp:TextBox></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<table id="table_list_set" cellspacing="0" cellpadding="0" width="100%" border="0" runat="server">
				<tr>
					<td align="center">
						<table>
							<tr>
								<td style="padding:1px;"><asp:linkbutton id="ibtn_prev_month" ToolTip="전월" runat="server" OnClick="ibtn_prev_month_Click"><img src="../Common/Images/arrow_rect_left.gif" alt="전월" /></asp:linkbutton></td>
								<td style="padding:1px;"><asp:Label ID="lbl_this_month" CssClass="sub_title" runat="server" /></td>
								<td style="padding:1px;"><asp:linkbutton id="ibtn_this_month" ToolTip="당월" runat="server" OnClick="ibtn_this_month_Click"><img src="../Common/Images/control_rect_stop.gif" alt="당월" /></asp:linkbutton></td>
								<td style="padding:1px;"><asp:linkbutton id="ibtn_next_month" ToolTip="차월" runat="server" OnClick="ibtn_next_month_Click"><img src="../Common/Images/arrow_rect_right.gif" alt="차월" /></asp:linkbutton></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<div class="div_left" style="margin:2px 0 0 0;"><asp:checkbox id="cb_scroll_enabled" runat="server" Checked="false" ToolTip="Scroll Enabled"></asp:checkbox></div>
						<ul class="horizontal div_right" style="width:240px; text-align:left;">
							<li style="width:33%;"><span class="icon sicon_in"></span><asp:Literal id="ltr_in_coming" Text="수입" runat="server" /></li>
							<li style="width:33%;"><span class="icon sicon_out"></span><asp:Literal id="ltr_out_going" Text="지출" runat="server" /></li>
							<li style="width:33%;"><span class="icon sicon_save"></span><asp:Literal id="ltr_saving" Text="저축" runat="server" /></li>
						</ul>
					</td>
				</tr>
				<tr>
					<td>
						<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False">
							<Columns>
								<asp:BoundField DataField="Sun" HeaderText="일" HtmlEncode="False" HeaderStyle-ForeColor="Red">
									<ItemStyle HorizontalAlign="Left" Width="12%" CssClass="v_align_t" />
								</asp:BoundField>
								<asp:BoundField DataField="Mon" HeaderText="월" HtmlEncode="False">
									<ItemStyle HorizontalAlign="Left" Width="15%" CssClass="v_align_t" />
								</asp:BoundField>
								<asp:BoundField DataField="Tue" HeaderText="화" HtmlEncode="False">
									<ItemStyle HorizontalAlign="Left" Width="15%" CssClass="v_align_t" />
								</asp:BoundField>
								<asp:BoundField DataField="Wed" HeaderText="수" HtmlEncode="False">
									<ItemStyle HorizontalAlign="Left" Width="15%" CssClass="v_align_t" />
								</asp:BoundField>
								<asp:BoundField DataField="Thu" HeaderText="목" HtmlEncode="False">
									<ItemStyle HorizontalAlign="Left" Width="15%" CssClass="v_align_t" />
								</asp:BoundField>
								<asp:BoundField DataField="Fri" HeaderText="금" HtmlEncode="False">
									<ItemStyle HorizontalAlign="Left" Width="15%" CssClass="v_align_t" />
								</asp:BoundField>
								<asp:BoundField DataField="Sat" HeaderText="토" HtmlEncode="False" HeaderStyle-ForeColor="Blue">
									<ItemStyle HorizontalAlign="Left" Width="13%" CssClass="v_align_t" />
								</asp:BoundField>
							</Columns>
						</asp:GridView>
					</td>
				</tr>
			</table>
			<!-- 리스트셋 끝 -->
			<!-- 설명 시작 -->			
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:label id="lbl_pk" runat="server"></asp:label>
				<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script language="javascript" type="text/javascript" defer="defer">
	/* This is high-level function. */
	function handle(delta, evt) {
		if ($("GridView1") != null) {
			var tableMinX = getPosX("GridView1");
			var tableMaxX = tableMinX + $("GridView1").offsetWidth;
			var tableMinY = getPosY("GridView1");
			var tableMaxY = tableMinY + $("GridView1").offsetHeight;
			var eventX = isIE() ? window.event.x : evt.clientX;
			var eventY = isIE() ? window.event.y : evt.clientY;

			if ($("cb_scroll_enabled").checked) {
			    if (tableMinX < eventX && tableMaxX > eventX && tableMinY < eventY && tableMaxY > eventY) {
			        if (delta < 0) {
			            //휠다운(차월)
			            if ($("ibtn_next_month") != null && !$("ibtn_next_month").disabled) {
			                __doPostBack("ibtn_next_month", "");
			            }
			        } else {
			            //휠업(전월)
			            if ($("ibtn_prev_month") != null && !$("ibtn_prev_month").disabled) {
			                __doPostBack("ibtn_prev_month", "");
			            }
			        }
			    }
			}
		}
	}

	/* Event handler for mouse wheel event. */
	function wheel(event) {
		var delta = 0;
		if (!event) event = window.event;
		if (event.wheelDelta) {
			delta = event.wheelDelta / 120;
			if (window.opera) delta = -delta;
		} else if (event.detail) delta = -event.detail / 3;
		if (delta) handle(delta, event);
	}

	/* Initialization code. */
	if (window.addEventListener) {
		window.addEventListener('DOMMouseScroll', wheel, false);
	}
	window.onmousewheel = document.onmousewheel = wheel;

</script>
</body>
</html>